import { createApp, App } from 'vue'
import rootApp from './App.vue'
import router from './router'
import store from './store'
import { setupStore } from './store'

import 'normalize.css'
import './assets/css/index.less'

import { registerApp } from './global'



const app: App = createApp(rootApp)
registerApp(app)
app.use(store)
setupStore()
app.use(router).mount('#app')

//封装axios，并测试
//import ybRequest from '@/service'
// import { IDataType } from './service/type'

// ybRequest
//   .post<IDataType>({
//     url: '/user/login',
//     data: {
//       username: 'admin',
//       password: '123456',
//     },
//   })
//   .then((res) => {
//     console.log(res)
//   })

// const url = '/user/getVertifyCodeImage' + '/?time =' + Math.random()
// console.log(url)

// const res = ybRequest.get({
//   url: url,
//   showLoading: false,
// })
// console.log("base64:",res);
